<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<s:if test="#session.user != null">
	<div id="um">
		<div class="avt y">
			<a href="#"><img
					src="<s:property value="#session.user.uimgUrl"/>"> </a>
		</div>
		<p>
			<strong class="vwmy"><a href="#" target="_blank"
				title="访问我的空间"><s:property value="#session.user.uname" /> </a> </strong>
			<span class="pipe">|</span><a href="#">设置</a>
			<span class="pipe">|</span><a href="#" id="pm_ntc">消息</a>
			<span class="pipe">|</span><a href="#" id="myprompt">提醒</a><span
				id="myprompt_check"></span>
			<span class="pipe">|</span><a href="outLogin">退出</a>
		</p>
		<p>
			<a href="#" id="extcreditmenu" class="showmenu">积分:
				<s:property value="#session.user.upoint" />
			</a>
			<span class="pipe">|</span>等级:
			<a href="#" id="g_upmine" class="xi2"><font
				color="steelbl"><s:property value="#session.user.uclass" /></font> </a>
		</p>
	</div>
</s:if>
<s:else>
	<div id="login">
		<form action="login" method="post">
			<table cellpadding="0" cellspacing="0" align="right">
				<tbody>
					<tr height="30">
						<td>
							<span class="ftid">用户名 </span>
						</td>
						<td>
							<input name="username" id="ls_username" autocomplete="off"
								class="px vm" tabindex="901" type="text">
						</td>
						<td class="fastlg_l">
							<label for="ls_cookietime">
								&nbsp;&nbsp;&nbsp;&nbsp;
								<input name="autoLogin" id="ls_cookietime" class="pc"
									value="true" tabindex="903" type="checkbox">
								自动登录
							</label>
						</td>
						<td>
							&nbsp;&nbsp;&nbsp;&nbsp;找回密码
						</td>
					</tr>
					<tr>
						<td>
							<label for="ls_password" class="z psw_w">
								密码
							</label>
						</td>
						<td>
							<input name="password" id="ls_password" class="px vm"
								autocomplete="off" tabindex="902" type="password">
						</td>
						<td class="fastlg_l">
							&nbsp;&nbsp;&nbsp;&nbsp;
							<button type="submit" class="pn vm" tabindex="904"
								style="width: 75px;">
								<em>登录</em>
							</button>
						</td>
						<td>
							&nbsp;&nbsp;&nbsp;&nbsp;
							<a href="register.jsp" class="xi2 xw1">注册</a>
						</td>
					</tr>
				</tbody>
			</table>
		</form>
	</div>
</s:else>
